package com.lagou.sqlsession;

import java.sql.SQLException;
import java.util.List;

/**
 * Created by seemygo on 2020/11/13.
 */
public interface SqlSession {
    //sqlSession接口封装了大量和数据库交互接口

    //1,查询所有用户信息
    public <E>List<E> queryAll(String statementId,Object ...params) throws Exception;


    //2,根据参数查询用户信息
    public <T>T queryOne(String statementId,Object... params) throws Exception;

    //3,新增用户
    void execute(String statementId,Object... params) throws Exception;

    <T> T getMapper(Class<T> userMapperClass);
}
